package com.yunshang.shoppingmall.service.WeChat.Impl;

import com.yunshang.shoppingmall.entity.WeChatMenu;
import com.yunshang.shoppingmall.entity.WeChatMu;
import com.yunshang.shoppingmall.mapper.WeChatMuMapper;
import com.yunshang.shoppingmall.service.WeChat.WeChatMuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("WeChatMuService")
public class WeChatMuServiceImpl implements WeChatMuService {

    @Autowired
    WeChatMuMapper weChatMuMapper;

    @Override
    public WeChatMu selectByPrimaryKey(Integer id) {
        return weChatMuMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<WeChatMu> selectMuList() {
        return weChatMuMapper.selectMuList();
    }

    @Override
    public List<WeChatMenu> selectMenuList() {
        return weChatMuMapper.selectMenuList();
    }

    @Override
    public int insertSelective(WeChatMu record) {
        return weChatMuMapper.insertSelective(record);
    }

    @Override
    public int updateByPrimaryKeySelective(WeChatMu record) {
        return weChatMuMapper.updateByPrimaryKeySelective(record);
    }
}
